<tr class="sold">
  <%= f.hidden_field :stock_id,:class => "stock_id" %>
  <td class="company"><%= Stock.find(:stock_id.to_i).company if :stock_id.nil? %></td>
  <td class="name"><%= :stock_id unless :stock_id.nil? %></td>
  <td class="sale_cost"><%= f.text_field :sale_cost, :size => 10 %></td>
  <td class="quantity"><%= f.text_field :quantity,:size => 4 %></td>
  <td class="tax_percentage"><%= f.text_field :tax_percentage,:size => 4 %></td>
  <td class="commission_percentage"><%= f.text_field :commission_percentage, :size => 4 %></td>
  <td class="total"></td>
</tr>
